/**
 * 
 */
package fr.utbm.gi.vi51.slizers.pw.environment;

import java.util.ArrayList;
import java.util.Collection;

import fr.utbm.gi.vi51.slizers.framework.agent.SituatedObject;

/**
 * Implementation of a world state.
 * 
 * @author Tarik Belabbas
 * 
 */
public class WorldState
{
	/**
	 * The objects of the world.
	 */
	private final Collection< ? extends SituatedObject >	objects;

	/**
	 * Parameterized constructor.
	 * 
	 * @param _objects the objects of the world
	 */
	WorldState( Collection< ? extends SituatedObject > _objects )
	{
		this.objects = new ArrayList< SituatedObject >( _objects );
	}

	/**
	 * Returns the objects in the environment.
	 * 
	 * @return the objects in the environment.
	 */
	public Collection< ? extends SituatedObject > getObjects()
	{
		return this.objects;
	}
}
